package com.woniuxy.repay.mapper;

import com.woniuxy.entity.RepaymentManage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author NATHEN
 */
@Mapper
public interface RepaymentManageMapper {

    /**
     * 新增还款管理
     * @param repaymentManage
     */
    void insertByCondition(RepaymentManage repaymentManage);

    /**
     * 更改参数
     * @param repaymentManage
     */
    void updateByCondition(RepaymentManage repaymentManage);

    /**
     * 条件查询
     * @param repaymentManage
     * @return
     */
    List<RepaymentManage> selectByCondition(@Param("repaymentManage")RepaymentManage repaymentManage,
                                            @Param("pageIndex")Integer pageIndex,@Param("pageSize")Integer pageSize);

    /**
     * 查询符合条件的条数
     * @param repaymentManage
     * @return
     */
    Integer selectCountByCondition(RepaymentManage repaymentManage);
}
